<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    .password-container {
      position: relative;
      display: inline-block;
    }

    .password-container input {
      border: none;
      height: 24px;
      line-height: 24px;
      padding-left: 16px;
    }

    .password-container .eye {
      position: absolute;
      top: 50%;
      left: 10px;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: #ccc;
    }

    .password-container input:focus+.eye {
      background-color: #777;
    }
  </style>
</head>

<body>
  <div class="password-container">
    <input type="password" id="password" name="password" required>
    <span class="eye" onclick="togglePassword(this)"></span>
  </div>
</body>

</html>